package com.sz.springboot_jpa.service.impl;

import com.sz.springboot_jpa.entity.User;
import com.sz.springboot_jpa.pojo.ResponseCode;
import com.sz.springboot_jpa.repository.UserRepository;
import com.sz.springboot_jpa.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserRepository userRepository;

    @Override
    public void reg(User user) {

    }

    @Override
    public User findByUsername(String username) {
        User user = userRepository.findByUsername(username);
        ResponseCode code = new ResponseCode();



        return user;
    }
}
